<?php
/**
 * Created by PhpStorm.
 * User: 刘翰文
 * Date: 2019/5/17
 * Time: 14:21
 */

namespace app\api\model;


class ChatLog extends BaseModels
{
    protected $autoWriteTimestamp='datetime';

    public function getFromAttr($value){
        if(mb_substr($value,0,2,'utf-8') == "us"){
            return 0;
        }
        return 1;
    }

}